package io;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileOutputStreamTest {

    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("..\\shiqiCoreClone\\src\\main\\java\\io\\FileInputStreamTest.java");
        FileOutputStream fio = new FileOutputStream("shiqiio1.txt");
        byte[] bytes = new byte[32];
        int hasRead = 0;
        while((hasRead = fis.read(bytes)) > 0) {
            fio.write(bytes);
        }

        fio.close();
        fis.close();
    }
}
